//test new c++file.cpp template
#include <iostream>
#include <pthread.h>

#pragma comment(lib, "x86/pthreadVC2.lib")
using namespace std;

#define NUM 5

void* testDo(void* arg){
	cout << "thread start do..." << endl;
	return NULL;
}

int main()
{

	cout << "hello world!" << endl;


	pthread_t tid[NUM];
	for (int i = 0; i < NUM; i++)
	{
		pthread_create(&tid[i], NULL, testDo, NULL);
	}

	system("pause");
	pthread_exit(NULL);
	
	
	return 0;
}